package com.jsu.clubmanagementsystem.service.activity;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jsu.clubmanagementsystem.model.entity.ActivityMembership;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 24753
* @description 针对表【activity_membership(社团活动人员关系)】的数据库操作Service
* @createDate 2025-05-13 17:19:16
*/
public interface ActivityMembershipService extends IService<ActivityMembership> {

    /**
     * 获取查询封装
     * @param userId
     * @param activityId
     * @return
     */
    QueryWrapper<ActivityMembership> getQueryWrapper(Long userId, Long activityId);

    /**
     * 用户是否报名了活动
     * @param userId
     * @param activityId
     * @return
     */
    boolean isUserInActivity(Long userId, Long activityId);
}
